.class final Lnet/tsapps/topdeals/ag;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private synthetic a:Lnet/tsapps/topdeals/PreferencesActivity;


# direct methods
.method constructor <init>(Lnet/tsapps/topdeals/PreferencesActivity;)V
    .locals 0

    iput-object p1, p0, Lnet/tsapps/topdeals/ag;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final onClick(Landroid/view/View;)V
    .locals 2

    iget-object v0, p0, Lnet/tsapps/topdeals/ag;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->j(Lnet/tsapps/topdeals/PreferencesActivity;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/ag;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->a(Lnet/tsapps/topdeals/PreferencesActivity;)Lnet/tsapps/topdeals/h/a;

    move-result-object v0

    invoke-virtual {v0}, Lnet/tsapps/topdeals/h/a;->g()Lnet/tsapps/topdeals/e/b;

    move-result-object v0

    invoke-virtual {v0}, Lnet/tsapps/topdeals/e/b;->c()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lnet/tsapps/topdeals/ag;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/PreferencesActivity;->showDialog(I)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lnet/tsapps/topdeals/ag;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    const/4 v1, 0x5

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/PreferencesActivity;->showDialog(I)V

    goto :goto_0
.end method
